package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.ILoginActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.WXLoginRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.LoginEntity;
import com.wgts.wgts.tools.SharedpreferencesHelper;

public class LoginActivityModel implements ILoginActivityModel {

    private NetService netService;

    private SharedpreferencesHelper sharedpreferencesHelper;

    public LoginActivityModel(NetService netService, SharedpreferencesHelper sharedpreferencesHelper) {
        this.netService = netService;
        this.sharedpreferencesHelper = sharedpreferencesHelper;
    }

    @Override
    public void wxLogin(WXLoginRequest request, HttpResultSubscriber<LoginEntity> subscriber) {
        netService.wxLogin(request, subscriber);
    }

    @Override
    public void wgtsLogin(String userName, String password, HttpResultSubscriber<LoginEntity> subscriber) {
        netService.wgtsLogin(userName, password, subscriber);
    }
}
